import { get, post, put, del } from '@/utils/request'

// export function page(query) {
//     return request({
//         url: '/dailyTask/page',
//         method: 'post',
//         data: query
//     })
// }
export const page = async (data: any) => {
    try {
        const response = await post<any>('/dailyTask/page', data);
        return response;
    } catch (error) {
    }
};

// export function finishTask(query) {
//     return request({
//         url: '/dailyTask/finishTask',
//         method: 'post',
//         data: query
//     })
// }
export const finishTask = async (query: any) => {
    try {
        const response = await post<any>('/dailyTask/finishTask', query);
        return response;
    } catch (error) {
    }
};


export interface DailyTask {
    id: Number,
    userId: Number,
    userName: string,
    title: string,
    content: string,
    taskType: string,
    status: string,
    rememberStartDate: string,
    scheduledTaskDateTime: string,
    aheadMinutes: number,
    remark: string,
    createTime: string,
}
export interface QueryParams {
    pageNum: number,
    pageSize: number,
    userId: number | null,
    status: number,
    taskType: number,
    rememberStartDate: string,
}
